<?php

require_once '../Library/PHPImageBuilder/PHPImageBuilder.php';

$pib = new PHPImageBuilder();

$pib->setFormat(array( '50x100', '100x100', '170x100','130x130'));
$pib->setOutputExtension('png');
$pib->setOutputPath('generate');

if($pib->setSource('image3.jpg')){
	
}else{
	print_r($pib->arrError);
}
$pib->generate();
echo '<pre>';
print_r($pib);
echo '</pre>';
foreach($pib->getFiles() as $file)
{
	echo '<img src="'.$file.'" />';
}
